﻿#pragma once

#include <QWidget>

class SvgLine;
class SvgPropInput;

class SvgLineInfoWidget : public QWidget
{
	Q_OBJECT
public:
	explicit SvgLineInfoWidget(QWidget* parent);

	void UpdateData(SvgLine& line) const;

signals:
	void ShapeStrokeWidthChanged(double width);
	void LinePosChanged(const QLineF& width);

private slots:
	void _PosChanged(double);

private:
	SvgPropInput* m_startXInput = nullptr;
	SvgPropInput* m_startYInput = nullptr;
	SvgPropInput* m_endXInput = nullptr;
	SvgPropInput* m_endYInput = nullptr;
	SvgPropInput* m_lineWidthInput = nullptr;
};
